package com.univhis.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

/**
 * @author 兴趣使然黄小黄
 * @version 1.0
 * @date 2024/1/3 10:55
 * 购物车
 */
@Data
@TableName("cart")
public class Cart extends Model<Cart> {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 医疗商品id
     */
    private Long goodsId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 医疗商品数量
     */
    private Integer count;

    /**
     * 创建时间
     */
    private String createTime;

    @TableField(exist = false)
    private Goods goods;
}
